//
//  SingInItemView.m
//  PlayCatchGame
//
//  Created by 流言 on 2018/1/25.
//  Copyright © 2018年 清正. All rights reserved.
//

#import "SingInItemView.h"
#import "AppHeader.h"

@implementation SingInItemView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.bgView.cornerRadius =8.0;
    self.bgView.cornerColor =APP_DEFAULT_COLOUR;
    self.bgView.layer.borderWidth =3;
}

- (void)setMoreDay:(NSInteger)moreDay {
    if (_moreDay != moreDay) {
        _moreDay =moreDay;
        
        self.isSiginType =self.isSiginType;
    }
}

- (void)setIsSiginType:(BOOL)isSiginType {
    _isSiginType =isSiginType;
    if (isSiginType) {
        self.imageView.image =[UIImage imageNamed:@"yiqiandao"];
    } else {
        if (self.moreDay ==7) {
            self.imageView.image =[UIImage imageNamed:@"jindou-3"];
        } else {
            self.imageView.image =[UIImage imageNamed:@"jindou-2"];
        }
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
